﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entities;
using Logic;

namespace Vegetable
{
    class Program
    {
        static void Main(string[] args)
         {
            Division division = DivisionFactory.CreateDivision();

            DivisionPrinter printer = new DivisionPrinter();
            printer.Print(division);

            DivisionCalculator divisionCalculator = new DivisionCalculator();
            int totalPrice = divisionCalculator.CalculatePrice(division);

            Console.WriteLine("summa calorificvalue  " + totalPrice);
            Console.ReadKey();
        }
    }
}
